/**
 * 返回一个Promise，并在ms毫秒后Promise变为完成状态
 */

export function sleep(ms: number): Promise<undefined> {
  return new Promise(resolve => setTimeout(resolve, ms));
}

export async function main() {
  console.log("a");
  await sleep(1000);
  console.log("b");
  await sleep(2000);
  console.log("c");
}

// main();
